package com.dxj.request;
import com.dxj.domain.Permission;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * @author dxj
 * @Description permission请求DTO
 * @date 2024/7/31 16:55
 */
@Data
@AutoMapper(target = Permission.class)
public class PermissionDTO {
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称", required = true, example = "管理员")
    @NotBlank(message = "权限名称不能为空")
    private String permissionName;
    /**
     * 权限描述 URL admin:insert:
     */
    @ApiModelProperty(value = "权限描述字符串", required = true, example = "admin:insert:")
    @NotBlank(message = "权限描述字符串不能为空")
    private String description;

}
